package com.easyCms.base.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.easyCms.base.common.CodeConst;
import com.easyCms.base.dao.CmBannerDAO;
import com.easyCms.base.entity.CmBanner;

@Service
public class CmBannerSV {
	@Autowired
	private CmBannerDAO cmBannerDAO;

	public List<CmBanner> getBannersByProjectCode(String projectCode) {
		return cmBannerDAO.findByProjectCodeAndStateOrderBySortDesc(projectCode, CodeConst.State.STATE_VALID);
	}
}
